<%@ Page Language="c#" AutoEventWireup="false" CodeBehind="EditSubscriptions.aspx.cs"
    MasterPageFile="~/App_MasterPages/layout.Master" Inherits="ud_Forum.ForumModuleEditSubscriptions"
    TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
    <portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
        <mp:CornerRounderTop ID="ctop1" runat="server" />
        <asp:Panel ID="pnlForum" runat="server" CssClass="art-Post-inner panelwrapper admin forums">
            <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
                <div class="modulecontent">
                    <fieldset>
                        <legend>
                            <asp:Literal ID="litHeading" runat="server" />
                        </legend>
                        <table summary='<%# Resources.ForumResources.ForumsTableSummary %>' cellpadding="0"
                            cellspacing="1" border="0" width="99%">
                            <thead>
                                <tr class="moduletitle">
                                    <th id="tdSubscribedHead" runat="server" class="fsubscribe">
                                        <mp:SiteLabel ID="lblSubscribed" runat="server" ConfigKey="ForumModuleSubscribedLabel"
                                            ResourceFile="ForumResources" UseLabelTag="false" />
                                    </th>
                                    <th id='t2' class="ftitle">
                                        <mp:SiteLabel ID="lblForumName" runat="server" ConfigKey="ForumModuleForumLabel"
                                            ResourceFile="ForumResources" UseLabelTag="false" />
                                    </th>
                                    <th id='t3' class="fthreadcount">
                                        <mp:SiteLabel ID="lblThreadCount" runat="server" ConfigKey="ForumModuleThreadCountLabel"
                                            ResourceFile="ForumResources" UseLabelTag="false" />
                                    </th>
                                    <th id='t4' class="fpostcount">
                                        <mp:SiteLabel ID="lblPostCount" runat="server" ConfigKey="ForumModulePostCountLabel"
                                            ResourceFile="ForumResources" UseLabelTag="false" />
                                    </th>
                                    <th id='t5' class="fpostdate">
                                        <mp:SiteLabel ID="lblLastPost" runat="server" ConfigKey="ForumModulePostLastPostLabel"
                                            ResourceFile="ForumResources" UseLabelTag="false" />
                                    </th>
                                </tr>
                            </thead>
                            <asp:Repeater ID="rptForums" runat="server">
                                <ItemTemplate>
                                    <tr class="modulerow">
                                        <td headers='<%# tdSubscribedHead.ClientID %>' id="tdSubscribed" runat="server" visible='<%# Request.IsAuthenticated %>'
                                            class="txtmed padded fsubscribe">
                                            <a id='forum<%# Eval("ItemID") %>' />
                                            <asp:CheckBox ID="chkSubscribed" runat="server" Checked='<%# Convert.ToBoolean(DataBinder.Eval(Container.DataItem,"Subscribed")) %>'
                                                OnCheckedChanged="Subscribed_CheckedChanged" />
                                        </td>
                                        <td headers='t2' class="ftitle">
                                            <h3>
                                                <asp:HyperLink ID="viewlink1" SkinID="TitleLink" NavigateUrl='<%# siteSettings.SiteRoot + "/Forums/ForumView.aspx?ItemID=" + DataBinder.Eval(Container.DataItem,"ItemID") + "&mid=" + ModuleId.ToString()  + "&pageid=" + PageId.ToString() %>'
                                                    runat="server"><%# DataBinder.Eval(Container.DataItem,"Title") %></asp:HyperLink></h3>
                                            <%# DataBinder.Eval(Container.DataItem,"Description") %>
                                        </td>
                                        <td headers='t3' class="fthreadcount">
                                            <%# DataBinder.Eval(Container.DataItem,"ThreadCount") %>
                                        </td>
                                        <td headers='t4' class="fpostcount">
                                            <%# DataBinder.Eval(Container.DataItem,"PostCount") %>
                                        </td>
                                        <td headers='t5' class="fpostdate">
                                            <%# FormatDate(Eval("MostRecentPostDate")) %>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                <AlternatingItemTemplate>
                                    <tr class="modulealtrow">
                                        <td headers='<%# tdSubscribedHead.ClientID %>' id="tdSubscribedAlt" runat="server"
                                            visible='<%# Request.IsAuthenticated %>' class="txtmed padded fsubscribe">
                                            <a id='forum<%# Eval("ItemID") %>' />
                                            <asp:CheckBox ID="chkSubscribedAlt" runat="server" Checked='<%# Convert.ToBoolean(DataBinder.Eval(Container.DataItem,"Subscribed")) %>'
                                                OnCheckedChanged="Subscribed_CheckedChanged" />
                                        </td>
                                        <td headers='t2' class="ftitle">
                                            <h3>
                                                <asp:HyperLink ID="Hyperlink2" SkinID="TitleLink" NavigateUrl='<%# siteSettings.SiteRoot + "/Forums/ForumView.aspx?ItemID=" + DataBinder.Eval(Container.DataItem,"ItemID") + "&mid=" + ModuleId.ToString()  + "&pageid=" + PageId.ToString() %>'
                                                    runat="server"><%# DataBinder.Eval(Container.DataItem,"Title") %></asp:HyperLink></h3>
                                            <%# DataBinder.Eval(Container.DataItem,"Description") %>
                                        </td>
                                        <td headers='t3' class="fthreadcount">
                                            <%# DataBinder.Eval(Container.DataItem,"ThreadCount") %>
                                        </td>
                                        <td headers='t4' class="fpostcount">
                                            <%# DataBinder.Eval(Container.DataItem,"PostCount") %>
                                        </td>
                                        <td headers='t5' class="fpostdate">
                                            <%# FormatDate(Eval("MostRecentPostDate")) %>
                                        </td>
                                    </tr>
                                </AlternatingItemTemplate>
                            </asp:Repeater>
                            <tr>
                                <td id="tdSave" runat="server" class="settingrow forum" align="left" colspan="5">
                                    <portal:mojoButton ID="btnSave" runat="server" Text="Save" />
                                    <portal:mojoButton ID="btnCancel" runat="server" Text="Cancel" />
                                    <portal:mojoHelpLink ID="MojoHelpLink1" runat="server" HelpKey="forumeditsubscriptionshelp" />
                                </td>
                            </tr>
                        </table>
                        <div class="cleared">
                        </div>
                    </fieldset>
                </div>
                <asp:HiddenField ID="hdnReturnUrl" runat="server" />
            </portal:mojoPanel>
            <div class="cleared">
            </div>
        </asp:Panel>
        <mp:CornerRounderBottom ID="cbottom1" runat="server" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
